Skip to content

feat: Update to Minecraft 26.1#50

Merged
scriptcoded merged 1 commit intomainfrom
upgrade-to-mc-26.1
Apr 3, 2026
Merged

feat: Update to Minecraft 26.1#50
scriptcoded merged 1 commit intomainfrom
upgrade-to-mc-26.1

Conversation

@scriptcoded
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 3, 2026 10:14
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

🚀 Release Preview

This pull request will trigger a new release when merged.

Release notes

0.8.0 (v0.7.0...v0.8.0) (2026-04-03)

Features

* Update to Minecraft 26.1 ([b9f6eb1](https://github.com/scriptcoded/scripts-chunk-loaders/commit/b9f6eb197d85b4a1119da15ce69590ff3c31e1c4))

@scriptcoded scriptcoded merged commit 905ef73 into main Apr 3, 2026
6 checks passed
@scriptcoded scriptcoded deleted the upgrade-to-mc-26.1 branch April 3, 2026 10:15
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

🎉 This PR is included in version 0.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates this Fabric mod to target Minecraft 26.1 and Java 25, including moving source code to the newer Mojang-named Minecraft packages/APIs and updating build/release tooling accordingly.

Changes:

  • Bumps Minecraft/Fabric Loader/Fabric API versions and updates mixin targets/signatures for the new game version.
  • Migrates Java sources/tests to new Minecraft package names and API method names.
  • Updates Gradle wrapper/tooling and CI to build with Java 25.

Reviewed changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/main/resources/scripts-chunk-loaders.mixins.json Updates mixin compatibility level and mixin class name.
src/main/resources/fabric.mod.json Updates dependency constraints (Minecraft/Java/loader).
src/main/java/io/nihlen/scriptschunkloaders/mixin/DispenserBlockMixin.java Adapts dispenser hook + entity query to new server/world APIs.
src/main/java/io/nihlen/scriptschunkloaders/mixin/AbstractMinecartMixin.java Ports chunk-loader behavior to AbstractMinecart and new serialization/teleport APIs.
src/main/java/io/nihlen/scriptschunkloaders/ChunkLoaderManager.java Ports world/dimension + forced-chunk APIs and tick event hook.
src/gametest/java/io/nihlen/scriptschunkloaders/ScriptsChunkLoadersGameTest.java Updates GameTest API usage and component naming APIs.
gradlew, gradlew.bat, gradle/wrapper/* Updates Gradle wrapper scripts/jar/properties.
gradle.properties Bumps version properties for Minecraft/loader/Fabric API.
build.gradle Updates Loom plugin id, Java 25 target, and Modrinth upload configuration.
.github/workflows/release.yml Builds releases using Java 25.
Comments suppressed due to low confidence (2)

src/main/java/io/nihlen/scriptschunkloaders/mixin/AbstractMinecartMixin.java:123

  • lastChunkPos != chunkPos compares object identity, not chunk coordinates. Since chunkPosition() will often return a new ChunkPos instance each tick, this condition can become true every tick and repeatedly re-register the chunk loader (log spam + extra work). Compare by value instead (e.g., !chunkPos.equals(lastChunkPos)), and update lastChunkPos accordingly.
    src/main/java/io/nihlen/scriptschunkloaders/mixin/AbstractMinecartMixin.java:80
  • There is an extra trailing semicolon after the if block. It compiles as an empty statement, but it’s unintended and makes control flow harder to read—please remove it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

forceLoadedChunks.keySet().forEach(worldRegistryKey -> {
ServerWorld world = server.getWorld(worldRegistryKey);
ServerLevel world = server.getLevel(worldRegistryKey);
updateChunkLoaders(world);
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

server.getLevel(worldRegistryKey) can return null (e.g., if a dimension is not loaded). updateChunkLoaders(world) will then throw. Add a null check before calling updateChunkLoaders (and consider pruning forceLoadedChunks for unloaded levels if needed).

Suggested change
updateChunkLoaders(world);
if (world != null) {
updateChunkLoaders(world);
}

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants